
import java.io.*;
import java.math.BigInteger;
import java.util.StringTokenizer;

public class Main {
	
	public static void main(String args[]) throws Exception
	{
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		
		while (in.ready())
		{
			String ss = in.readLine();
			StringTokenizer s = new StringTokenizer(ss);
			System.out.println(ss);
			
			BigInteger n1 = new BigInteger(s.nextToken());
			String op = s.nextToken();
			BigInteger n2 = new BigInteger(s.nextToken());
			
			BigInteger limit = new BigInteger(new Integer(Integer.MAX_VALUE).toString()); 
			if (n1.compareTo(limit) > 0) System.out.println("first number too big");
			if (n2.compareTo(limit) > 0) System.out.println("second number too big");
			
			BigInteger res = null;
			if (op.equals("+")) res = n1.add(n2);
			else res = n1.multiply(n2);
			
			if (res.compareTo(limit) > 0) System.out.println("result too big");			
		}
	}
	
}
